<template>
  <div class="common-layout">
    <el-container>
      <el-header class="top-header"><navigation/></el-header>
    <el-main><router-view  /></el-main>
    </el-container>
    <foot />
  </div>
</template>

<script>
import { ref,provide } from "vue";
import navigation from "../../components/navigation/Navigation.vue";
import foot from "../../components/foot/foot.vue";
export default {
  components: {
    navigation,
    foot
  },

  setup() {
    const isRouterAlive=ref(true);
    const reload=()=>{
      isRouterAlive.value=false
      nextTick(()=>{
        isRouterAlive.value=true;
      })
    }
    provide('reload',reload)
    return{
      isRouterAlive
    }
  },
};
</script>
<style scoped>
.top-header {
  margin: 10px 0 20px 0;
  padding: 0;
  overflow: hidden;
}
.el-main{
  overflow:initial;
   padding: 0;
}
</style>
